package priv.lhy.constants;

/**
 * author : lihy
 * date : 2019/1/29 15:08
 * <p>
 * 响应状态码枚举类
 */
public enum ResponseCodeEnum {
    SUCCESS("000000", "成功"),
    USERORPASSWORD_ERROR("000001", "用户名或密码错误"),
    TOKEN_EXPIRE("000002", "登录超时"),
    SIGNATURE_ERROR("000003", "签名验证失败"),
    SYSTEM_BUSY("000004", "系统繁忙，请稍后再试"),
    SYS_PARAM_NOT_RIGHT("000005", "请求参数错误"),
    QUERY_DATA_NO_EXIST("000006", "请求数据不存在"),
    CAPTEXT_ERROR("000007", "验证码错误");



    private final String code;
    private final String msg;

    ResponseCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
